#这是博客首页测试用例
from selenium.webdriver.common.by import By

from common.Utils import BlogDriver

class BlogList:
    url =""
    driver=""
    def __init__(self):
        self.url = "首页网址"
        self.driver = BlogDriver.driver
        self.driver.get(self.url)
    #验证测试首页(登录情况下)
    def ListTestByLogin(self):
        #测试博客标题是否存在
        self.driver.find_element(By.CSS_SELECTOR, "标题标签")
        #测试博客内容是否存在
        self.driver.find_element(By.CSS_SELECTOR, "内容标签")
        #测试按钮是否存在
        self.driver.find_element(By.CSS_SELECTOR, "查看全文按钮标签")

        #个人信息-检测昵称是否存在
        self.driver.find_element(By.CSS_SELECTOR, "昵称标签")
        #添加屏幕截图
        BlogDriver.getScreeShot()

    # 验证测试首页(未登录情况下)

